using System.Data;
using mapshiftApplication.Dto;

namespace mapshiftApplication.Repositories;

public interface IOtdRepository
{

    Task<OtdDto?> QueryDetailAsync(OtdQuery req, CancellationToken ct);



    Task<long> CreateAsync(OtdDto req, CancellationToken ct);


    Task<PagedResult<OtdDto>> QueryAsync(OtdQuery query, CancellationToken ct);


    Task<DataTable> GetIssuesForExportAsync(CancellationToken ct = default);


    Task<bool> DeleteAsync(long id, CancellationToken ct);


    Task<bool> EditOtdAsync(long id, string? remark, int isDone,string? delayCategory, CancellationToken ct);
}